from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import time


#获取浏览器对象
browser =  webdriver.Chrome()
browser.get("https://www.baidu.com")
input  = browser.find_element(By.ID,'kw')
input.send_keys('哈哈哈')
input.send_keys(Keys.ENTER)
time.sleep(10)
browser.close()
